var style = '../style/recruit/pc';
//首页修改背景图
function changBgOver(obj) {
	var tmp = document.getElementById(obj);
	tmp.style.background="url("+style+"/images/shouye2.png) no-repeat";
}
function changBgOut(obj) {
	var tmp = document.getElementById(obj);
	tmp.style.background="url("+style+"/images/shouye1.png) no-repeat";
}
//搜索结果修改背景颜色
function changeBackOver(obj){
	var tmp = document.getElementById(obj);
	tmp.style.backgroundColor="#F1FCFE";
}
function changeBackOut(obj){
	var tmp = document.getElementById(obj);
	tmp.style.backgroundColor="#FFF";
}
//搜索框前下拉
function changeBackOver2(obj){
	var tmp = document.getElementById(obj);
	tmp.style.backgroundColor="#127ABF";
	tmp.style.color="#FFF";
}
function changeBackOut2(obj){
	var tmp = document.getElementById(obj);
	tmp.style.backgroundColor="#FFF";
	tmp.style.color="#656565";
}
//搜索显示与隐藏
function showList(obj){
	var tmp = document.getElementById(obj);
	if (tmp.style.display == "none") {
		tmp.style.display="block";
	}else{
		tmp.style.display="none";
	}
}
//搜索显示隐藏选项及换图标
function hideList(obj,icon){
	var tmp = document.getElementById(obj);
	var tuicon = document.getElementById(icon);
	if (tmp.style.display == "block") {
		tmp.style.display="none";
		tuicon.style.background="url("+style+"/images/icon.png) -269px -40px no-repeat";
	}else{
		tmp.style.display="block";
		tuicon.style.background="url("+style+"/images/icon.png) -290px -40px no-repeat";
	}
}
//搜索减号与加号
/*function jianOrJia(con,pic){
	var content = document.getElementById(con);
	var tupic = document.getElementById(pic);
	if (content.offsetHeight > 23) {
		tupic.style.background="url("+style+"/images/icon.png) -350px 0 no-repeat";
		content.style.height="23px";
		content.style.overflow="hidden";
	}else{
		tupic.style.background="url("+style+"/images/icon.png) -320px 0 no-repeat";
		content.style.height="auto";
		content.style.overflow="";
	}
}*/
//页面中选项切换
function qiehuan(obj1,obj2){
	var tmp1 = document.getElementById(obj1);
	var tmp2 = document.getElementById(obj2);
	if (tmp2.style.display == "none") {
		tmp2.style.display="block";
		tmp1.style.display="none";
	}else{
		tmp2.style.display="none";
		tmp1.style.display="block";
	}
}
//页面选项切换值改变
function changeList(id,val,nr){
	document.getElementById(id).value = val;
	document.getElementById(id+'gb').innerHTML = nr;
}
//搜索选择城市改变区
function changeLists(id,val,nr,gid){
	document.getElementById(id).value = val;
	document.getElementById(id+'gb').innerHTML = nr;
	gbqu(gid);
}
//隐藏选项
function closeList(obj){
	document.getElementById(obj).style.display = 'none';
}
//搜索改变值
function gbval(id,val,ys,count){
	document.getElementById(id).value=val;
	for(var i=0;i<count;i++){
		if(i == ys){
			document.getElementById(id+i).className='c_1379BF';
		}else{
			document.getElementById(id+i).className='';
		}
	}
}
//搜索不限
function qbyc(id,count){
	document.getElementById(id).value=0;
	for(var i=0;i<count;i++){
		document.getElementById(id+i).className='';
	}
}
//搜索兼职时间不限
function qbycs(id,count){
	for(var i=0;i<count;i++){
		document.getElementById(id+i).checked='';
	}
}
//搜索改变值并改变链接
function gbvallj(id,val,ys,count){
	document.getElementById(id).value=val;
	for(var i=0;i<count;i++){
		if(i == ys){
			document.getElementById(id+i).className='c_1379BF';
		}else{
			document.getElementById(id+i).className='';
		}
	}
	gblj(id,val);
}
//搜索值不限并改变链接
function qbyclj(id,count){
	document.getElementById(id).value=0;
	for(var i=0;i<count;i++){
		document.getElementById(id+i).className='';
	}
	gblj(id,0);
}